	$('.addClassify').load('/pc/Commonheader.html');
	$('#Commonfooter').load('/pc/CommonFooter.html');

$(function(){


    sc();
    function sc() {
        var $scrollobj = document.getElementById('scrollobj');
        function scroll(self) {
            /*往左*/
            var tmp = (self.scrollLeft)++;
            //当滚动条到达右边顶端时
            if (self.scrollLeft == tmp) {
                self.innerHTML += "&nbsp;&nbsp;&nbsp;&nbsp;" + self.innerHTML;
            }
            //当滚动条滚动了初始内容的宽度时滚动条回到最左端
            if (self.scrollLeft >= self.firstChild.offsetWidth) {
                self.scrollLeft = 0;
            }
        }

        if ($scrollobj.scrollWidth > $scrollobj.offsetWidth) {   // 判断是否需要滚动
            var timer = setInterval(function () {
                scroll($scrollobj);
            }, 30);
        }
    }

    $('#company_product_list').on('click','li',function(){

    	window.sessionStorage['dataId'] = $(this).attr('data-id');
    	window.sessionStorage['header_id'] = 2;

    })

    $('#information').on('click','.information_text_getmore',function(){
    	var data_newsPageId = $(this).attr('data_newsPageId')
    	window.sessionStorage['header_id'] = data_newsPageId;
    })

    /*$('#company_product_list').on('click','[data_cpPageId]',function(){
    	var data_cpPageId = $(this).attr('data_cpPageId')
    	window.sessionStorage['header_id'] = data_cpPageId;
    })*/

});
